Repository navigation
feat(observability): add opt-in Langfuse and Helicone exports - #51
Conversation
Send content-free request observations to explicitly configured Langfuse and Helicone collectors when OBSERVABILITY_EXPORTERS_JSON lists them. Delivery uses a bounded in-memory queue with retries limited to transport failures, 429 and 5xx, and counts acknowledgements per exporter. Credentials come from variables ending in _EXPORT_CREDENTIAL. With the setting unset, nothing is sent and OTLP export is unchanged.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
multillm-proxy | f96656f | Oct 09 2026, 09:26 AM |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…o feat/observability-exports # Conflicts: # package.json
fb6ed66
into
integrate/gateway-waves-1-4
Summary
Adds opt-in exports of content-free request observations to Langfuse and Helicone collectors.
OBSERVABILITY_EXPORTERS_JSONdefaults to[]. While it is unset or empty, nothing is sent and the existing OTLP export is byte-for-byte unchanged.type(langfuseorhelicone), an HTTPSendpoint, its exactallowed_originsand acredential_env.credential_envmust name a variable ending in_EXPORT_CREDENTIAL, so a provider or admin key can't be sent to a collector by mistake.public:secretas Basic auth. Helicone uses a Bearer token.Details are in
docs/observability-exports.md.Coordinator edits in this PR
credential_envto*_EXPORT_CREDENTIALnames in both runtimes. The builder's version accepted any variable name. Tests now includeGEMINI_API_KEYas a rejected name.tests/test_observability_exports_worker.mjsintest:worker;worker/observability-export.mjsin the edge module inventory;OBSERVABILITY_EXPORTERS_JSON,LANGFUSE_EXPORT_CREDENTIALandHELICONE_EXPORT_CREDENTIALin the Container env keys.Left for the Wave 5 integration
The native Worker hook needs the execution context for
waitUntil. The integration will:createNativeObservabilityHook(env, ctx)innativeGenerationFetch;ctxtorecordNativeUsage.Until then, native Worker observations are buffered but not flushed. Flask exports already run through
TelemetryExporter.submit.Tests
tests/test_observability_exports.pyandtests/test_observability_exports_worker.mjscover:npm run test:worker: 1,471 passed.npm run test:integration: 7 passed.test:deploy, free routes, client headers and thewrangler deploy --dry-runbundle all pass.CI notes
python/nodejobs: the dependency-audit steps fail on every branch, including main. fix(deps): clear the CI dependency audit advisories #42 fixes that.AdmissionCoordinatorDurable Object migration, whichwrangler versions uploadcannot apply. This is expected untilwrangler deployruns on main.This is part of Wave 5. It is based on
integrate/gateway-waves-1-4, the Wave 4 integration branch. The README line comes with the Wave 5 integration PR.